#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <string>
#include <cstring>
#include <iomanip>
#include <set>
#include <map>
#include <cstdio>
#define fill(a, c) memset(a, c, sizeof(a))
#define ldb long double
#define LL long long
#define nextLine() {int c = 0; while((c = getchar()) != 10 && c != EOF);}
#define sqr(a) ((a) * (a))
#define debug(a) cerr << #a << " = " << a << " ";
#define debugl(a) cerr << #a << " = " << a << "\n";
const ldb eps = 1e-9;
const ldb LDINF = 1e70;
const LL LINF = 1ll << 52;
const int INF = 1 << 30;
const ldb pi = fabs(atan2(0.0, -1.0));
using namespace std;

int a, b, c , d,e ,f ;
void Load()
{
	cin >> a >> b >> c >> d >> e >> f;
}

void Solve()
{
	if (d == 0)
	{
		cout << "Hermione";
	}
	else if (c == 0)
	{
		cout << "Ron";
	}
	else if (b == 0)
	{
		cout << "Hermione";
	}
	else if (a == 0)
	{
		cout << "Ron";
	}
	else if (f == 0)
	{
		cout << "Hermione";
	}
	else if (e == 0)
	{
		cout << "Ron";
	}
	else if (a * c * e < b * d * f)
	{
		cout << "Ron";
	}
	else cout << "Hermione";

}

int main()
{
#ifndef ONLINE_JUDGE
	freopen("in", "rt", stdin);
	freopen("out", "wt", stdout);
#endif
	Load();
	Solve();
	return 0;
}
